#ifndef UTIL_H
#define UTIL_H

#include <ctime>

inline time_t timestamp() {
    return time(NULL);
}

inline void fmt_time(time_t t, char *buffer) {
    struct tm *timeinfo = localtime(&t);
    strftime(buffer, 80, "%H:%M:%S", timeinfo);
}

#endif // UTIL_H
